﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;
using System.Data;
namespace BUS
{
    public class ChiTietHoaDonBUS
    {
        ChiTietHoaDonDAO cthddao = new ChiTietHoaDonDAO();
        public bool ThemChiTietHoaDon(ChiTietHoaDonDTO cthddto)
        {
            return cthddao.ThemChiTietHoaDon(cthddto);
        }
        public DataTable LayChiTietHoaDon(int mahd)
        {
            return cthddao.LayChiTietHoaDon(mahd);
        }
        public int TinhSLSachDaBan(int masach)
        {
            return cthddao.TinhSLSachDaBan(masach);
        }
    }
}
